#!/bin/bash
i=0
sum=0
while [ $i -lt $1 ]
do
	sum=$[$i+$sum]
	echo "$sum"
	i=$[$i+1]
done

